﻿using UnityEngine;

namespace WorldMapBase.Tile
{
    /// <summary>
    /// 树LOD内部缩放策略
    /// </summary>
    public class TreeLODScaleStrategy : ILODScaleStrategy
    {
        private int m_ScaleMin = 20;

        private int m_ScaleMax = 100;

        public float GetLODScale(float lodPercent)
        {
            float scale = Mathf.Clamp(lodPercent, m_ScaleMin, m_ScaleMax);
            return scale;
        }
    }
}